import { Drash } from './mod.ts';
class Res extends Drash.Http.Response {
    constructor(req: any) {
        super(req, { views_path: 'src/liv/modules/students/public/'});
    }
}
export class HomeResource extends Drash.Http.Resource {
    static paths = ["/"];
    constructor(req: any, server: any) {
        const res = new Res(req);
        super(req, res, server);
    }
    public GET() {
        // this.response.body = "Hello World! deno + Drash is cool!";
        const list = [
            {
                name: 'a',
                age: 12
            },
            {
                name: 'a1',
                age: 10
            },
        ];
        const html = this.response.render("index.html") ;
        this.response.body = html;
        return this.response;
    }
}